<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
require_once INCLUDE_PATH . 'smarty/Smarty.class.php';

class CSmarty extends Smarty {

    public $tpl_path;

    public function __construct() {
        parent::__construct();

        $this->left_delimiter = '{';
        $this->right_delimiter = '}';
        $this->template_dir = TEMPLATE_PATH;
        $this->compile_dir = TEMPLATEC_PATH;
        $this->compile_check = true;
        $this->force_complie = true;
        $this->php_handling = SMARTY_PHP_REMOVE;
        $this->caching = 0;
    }

    public function outputBody() {
        if ($this->tpl_path) {
            $this->display($this->tpl_path);
        }
    }

}

?>
